package com.woniu.payback_font.service.impl;

import com.woniu.payback_font.mapper.RepaymentPlanMapper;
import com.woniu.payback_font.service.RepaymentPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class RepaymentPlanServiceImpl implements RepaymentPlanService {
    @Autowired
    private RepaymentPlanMapper repaymentPlanMapper;

    @Override
    public BigDecimal queryAllCapital(String uid) {
        return repaymentPlanMapper.selectAllCapatal(uid);
    }

    @Override
    public BigDecimal queryAllInterest(String uid) {
        return repaymentPlanMapper.selectAllInterest(uid);
    }
}
